<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0px;
            margin: 0px
        }

        img {
            height: 100px;
            vertical-align: bottom;
        }

        .float {
            float: left;
        }

        .container {
            background-color: lightblue;
            height: 100px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="float">
           xxjjjggg <img src="../assets/avaters/avater2.webp" />
        </div>
    </div>
    <span>我在容器外，但是我也环绕图片了！</span>

</body>

</html>